<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%@page import="javacommon.util.DateTools" %>
<html>
  <head>
    <title>${appname}</title>
	<%@include file="meta.jsp"%>
	<style type="text/css">
		.grrw_title{line-height: 29px;background: url(${ctx}/style/images/left_04.jpg) repeat-x; height: 29px;}
		body {
			background-image: url(${ctx}/style/images/body_gb.jpg);
		}
	</style>
	<script src="${ctx}/includes/jquery.js" type="text/javascript"></script>
	<script language="javascript" type="text/javascript" src="${ctx}/js/lhgdialog/lhgdialog.min.js"></script>
  </head>
  
  <body>
    <div class="Teg_body">
    	<%@include file="header.jsp"%>
    	
    	<div class="Teg_content">
    		<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td width="224" valign="top" background="${ctx}/style/images/left_05.jpg">
				    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
				    		<tr>
				        		<td style="padding-right: 5px;background-image:url(${ctx}/style/images/left_04.jpg)" width="224" height="45" align="right">
				        		</td>
				      		</tr>
				    	</table>
				    	<table width="100%" border="0" cellspacing="0" cellpadding="0" >
				        	<tr>
				        		<td align="left" height="137px" valign="top">
									<table   width="200" border="0" cellpadding="0" cellspacing="3">
				  						<c:if test="${sessionScope.loginInfo.category == 1}">
				  						<tr>
				    						<td align="center">
				    						<a id="fabu" href="${ctx}/zdxzdc/search.do">重大行政督查事项</a>
				    						</td>
				  						</tr>
				  						<tr>
				    						<td align="center">
				    						<a id="fabu" href="${ctx}/xmjcb_search.do">项目进度表</a>
				    						</td>
				  						</tr>
				  						<tr>
				    						<td align="center">
				    						<a id="fabu" href="${ctx}/task_search.do?opt=processing">任务监督</a>
				    						</td>
				  						</tr>
				  						<tr>
				    						<td align="center">
				    						<a id="fabu" href="${ctx}/personnel_ygdt.do">人员动态表</a>
				    						</td>
				  						</tr>
				  						</c:if>
				  						
				  						<c:if test="${sessionScope.loginInfo.category == 2}">
				  						<tr>
				    						<td align="center">
				    						<a id="fabu" href="${ctx}/task_create.do?opt=createtask">下发任务</a>
				    						</td>
				  						</tr>
				  						<tr>
				    						<td align="center">
				    						<a id="fabu" href="${ctx}/task_search.do?opt=processing">任务监督</a>
				    						</td>
				  						</tr>
				  						<tr>
				    						<td align="center">
				    						<a id="fabu" href="${ctx}/xmjcb_search.do">项目进度表</a>
				    						</td>
				  						</tr>
				  						<tr>
				    						<td align="center">
				    						<a id="fabu" href="${ctx}/zdxzdc/search.do">重大行政督查事项</a>
				    						</td>
				  						</tr>
				  						
				  						
				  						</c:if>
				  						
				  						<c:if test="${sessionScope.loginInfo.category == 3}">
				  						<tr>
				  							<td align="center">
				    						<a id="fabu" href="${ctx}/task_myTask.do?opt=my">未处理任务 <span style="color: red;">${requestScope.wclrw }</span> 个</a>
				    						</td>
				  						</tr>
				  						<tr>
				  							<td align="center">
				    						<a id="fabu" href="${ctx}/task_mySearch.do?opt=complete">已处理任务 <span style="color: red;">${requestScope.yclrw }</span> 个</a>
				    						</td>
				  						</tr>
				  						</c:if>
				  						<%-- 
				  						<tr>
				  							<td align="center">
				    						<a id="fabu" href="${ctx}/privateLog/list.do">个人日志</a>
				    						</td>
				  						</tr>
				  						<tr>
				    						<td align="center">
				    						<a id="fabu" href="${ctx}/personnel_ygdt.do">人员动态</a>
				    						</td>
				  						</tr>
				  						<tr>
				  							<td align="center">
				    						<a id="fabu" href="${ctx}/privateLog/list.do">个人日志</a>
				    						</td>
				  						</tr>
				  						--%>
				  						
									</table>
						  		</td>
				      		</tr>
				      	</table>
				      	<table width="100%" border="0" cellspacing="0" cellpadding="0">
					        <tr>
					          <td><img src="${ctx}/style/images/left_01.jpg" width="224" height="45"></td>
					        </tr>
				        	<tr>
				        		<!-- background="${ctx}/style/images/left_02.jpg" -->
				          		<td align="center"  height="550"  valign="top">
						        	<table width="200" border="0" cellspacing="0" cellpadding="3">
						          		<c:forEach items="${app1List}" var="item" varStatus="status">
									    	<tr align="left">
								                <td height="25"> &nbsp;<img src="${ctx}/style/images/wen.gif" width="9" height="9">&nbsp;
								                <a href='${ctx}/apps.do?appid=${item.id}' target="_blank">${item.appname}</a>
								                </td>
								            </tr>
								            <tr>
								              <td height="1" background="${ctx}/style/images/line.gif"></td>
								            </tr>
								        </c:forEach>
								        
								        <c:forEach items="${app0List}" var="item" varStatus="status">
								    	<tr align="left">
							                <td height="25"> &nbsp;<img src="${ctx}/style/images/wen.gif" width="9" height="9">&nbsp;
							                <a target="_blank" href='${item.appurl }' onclick="javascript:;">${item.appname}</a>
							                </td>
							            </tr>
							            <tr>
							              <td height="1" background="${ctx}/style/images/line.gif"></td>
							            </tr>
							       		</c:forEach>
						          	</table>
						        </td>
				        	</tr>
					        <%-- 
					        <tr>
					          <td><img src="${ctx}/style/images/left_03.jpg" width="224" height="5"></td>
					        </tr>
					        --%>
				   		</table>
				    </td>
				    <td width="527" valign="top" bgcolor="#FFFFFF">
					    <table width="100%" border="0" cellspacing="0" cellpadding="0">
					    	<tr>
					    		<td><a href="info_tzgg.do"><img src="${ctx}/style/images/title_01.jpg" width="527" height="45" border="0"/></a></td>
					    	</tr>
					    	<tr>
					        	<td><img src="${ctx}/style/images/title_02.jpg" width="527" height="10"></td>
					    	</tr>
					    	<tr>
					        	<td align="center" background="${ctx}/style/images/title_03.jpg">
					        		<table width="500" border="0" cellspacing="0" cellpadding="0">
							            <tr>
							              <td align="left" height="320" valign="top">
								              <table width="100%" border="0" cellspacing="0" cellpadding="3">
								              	<c:forEach items="${infoList}" var="item" varStatus="status">
									              	<tr>
									                  <td width="70%" style="font-size: 12px;" height="20">
									                  <c:if test="${item.istop == 1}">
									                  <img src="${ctx}/style/images/pin_1.gif" width="18" height="20" align="absmiddle"> 
									                  </c:if>
									                  <c:if test="${item.istop != 1}">
									                  <img src="${ctx}/style/images/item_02.gif" width="7" height="7" align="absmiddle"> 
									                  </c:if>
									                  <a class="sl" href='${ctx}/info_detail.do?id=${item.id}'>${item.bt }</a>
									                  </td>
									                  
									                  <td width="17%"  style="font-size: 11px;color: #808080;">[${item.fbbm }]</td>
									                  
									                  <td width="13%"  style="font-size: 13px;color: #808080;"><fmt:formatDate value="${item.fbsj}" type="both"  pattern="yyyy-MM-dd"/></td>
									                  
									                </tr>
									                <tr>
										              <td colspan="3" height="1" background="${ctx}/style/images/line.gif"></td>
										            </tr>
								              	</c:forEach>
								              </table>
							              </td>
							            </tr>
					          		</table>
					          	</td>
					      	</tr>
						 	<tr>
						    	<td><img src="${ctx}/style/images/title_04.jpg" width="527" height="10"></td>
							</tr>
					    </table>
				   		<table width="100%" border="0" cellspacing="0" cellpadding="0">
					        <tr>
					          <td><a href="${ctx}/office_search.do"><img src="${ctx}/style/images/title_05.jpg"  width="527" height="45" border="0"/></a></td>
					        </tr>
					        <tr>
					        	<td><img src="${ctx}/style/images/title_02.jpg" width="527" height="10"></td>
					    	</tr>
					    	<tr>
					        	<td align="center" background="${ctx}/style/images/title_03.jpg">
					        		<table width="500" border="0" cellspacing="0" cellpadding="0">
							            <tr>
							              <td align="left" height="335" valign="top">
								              <table width="100%" border="0" cellspacing="0" cellpadding="3">
								              	<c:forEach items="${zbybList}" var="item" varStatus="status">
													<tr>
										              <td width="70%"  style="font-size: 12px;" height="20">
										              <img src="${ctx}/style/images/item_02.gif" width="7" height="7" align="absmiddle">
										              <a class="sl" href='office_detail.do?id=${item.id}'>${item.name}</a>
										              </td>
										              
										              <td width="17%"  style="font-size: 11px;color: #808080;">[${item.fbbm }]</td>
										              
										              <td width="13%"  style="font-size: 13px;color: #808080;"><fmt:formatDate value="${item.uptime}" type="both"  pattern="yyyy-MM-dd"/></td>
										            </tr>
										            <tr>
										              <td colspan="3" height="1" background="${ctx}/style/images/line.gif"></td>
										            </tr>
												</c:forEach>
								              </table>
							              </td>
							            </tr>
					          		</table>
					          	</td>
					      	</tr>
						 	<tr>
						    	<td><img src="${ctx}/style/images/title_04.jpg" width="527" height="10"></td>
							</tr>
				      	</table>
				    </td>
				    <td width="209" valign="top" background="${ctx}/style/images/right_02.jpg">
				    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
				    		<c:if test="${sessionScope.loginInfo.category != 1}">
				    		<tr>
				    			<style type="text/css">
			    					.btn_con{z-index:1;position:relative;height:45px;}
			    					.bg_checkin{background-image:url(${ctx}/style/88.png)}
			    					.bg_checkin{width:209px;display:block;background-position:0px 0px;height:54px;top:-3px;left:0px;}
			    					
			    					.bg_checkin span.date{left:10px;font-size:14px;-webkit-text-size-adjust:none;color: #808080;}
			    					.bg_checkin span.week{display:block;width:40px;height:17px;text-align:center;z-index:1;color: #808080;}
									.bg_checkin span.week{left:3px;top:19px;width:55px;font-size:14px;font-weight:bold;height:20px;overflow:hidden}
									
									.bg_checkin span.time_tip{display:block;right:7px;font-size:14px;-webkit-text-size-adjust:none;color: #808080;}
									.bg_checkin strong.time{;color: #808080;width:36px;height:24px;right:0;top:24px;font-size:14px;font-weight:normal;text-align:center;z-index:1}
									
									.qdbutton{width:100px;background-position:0px 41px;height:41px;}
									.qdbutton:hover{width:100px;background-position:113px 41px;height:41px;}
									
									.yqdbutton{background-image:url(${ctx}/style/87.png)}
									.yqdbutton{width:100px;background-position:0px 0px;height:41px;}
			    				</style>
				    			<td width="209" height="45" align="center">
				    				<div class="btn_wrap" id="checkin_icon_container">
					    				<script language=JavaScript>
										 today=new Date();
										 function initArray(){
										   this.length=initArray.arguments.length
										   for(var I=0;I<this.length;I++)
										   this[I+1]=initArray.arguments[I]  
										 }
										 var d=new initArray(
										     "周日",
										     "周一",
										     "周二",
										     "周三",
										     "周四",
										     "周五",
										     "周六");
										</script>
					    				<div class="bg_checkin"/>
					    					<table height="60">
					    						<tr>
					    							<td width="55">
					    								<span class="date"><script type="text/javascript">document.write(today.getMonth()+1,".",today.getDate());</script></span>
					    								<span class="week"><script type="text/javascript">document.write(d[today.getDay()+1]);</script></span>
					    							</td>
					    							<td width="100">
									        			<c:if test="${isqd == 0}">
									        				<%
									        				if(DateTools.ifWeek()){ %>
									        				<span title="周末不可签到" class="bg_checkin qdbutton"></span>
									        				<%}else{ %>
									        				<a title="点击签到" class="bg_checkin qdbutton" onclick="ygqd()" href="javascript:void(0);"/>
									        				<%}%>
									        			</c:if>
									        			<c:if test="${isqd > 0}">
									        				<span title="已签到" class="bg_checkin yqdbutton"></span>
									        			</c:if>
					    							</td>
					    							<td width="55">
					    								<span class="time_tip">DAY</span>
					    								<strong class="time">${qdzs}</strong>
					    							</td>
					    						</tr>
					    					</table>
					    					
					    				</div>
				    				</div>
				        		</td>
							</tr>
							</c:if>
				    		<tr>
				        		<td style="background-image:url(${ctx}/style/images/right_07.jpg)" width="209" height="45" align="right">
				        		</td>
				      		</tr>
							<tr>
						        <td align="center">
						        	<table width="100%" border="0" cellspacing="0" cellpadding="0">
						        		<c:if test="${sessionScope.loginInfo.category == 1}">
						        		<tr>
								            <td height="60" align="center"><a href="${ctx}/personnel_search.do"><img name="" src="${ctx}/style/images/right_zt03.jpg" width="177" height="50" border="0" alt="人员信息查询"></a></td>
								        </tr>
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/info_gzzd.do"><img name="" src="${ctx}/style/images/right_zt06.jpg" width="177" height="50" border="0" alt="规章制度"></a></td>
								        </tr>
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/template_search.do"><img name="" src="${ctx}/style/images/right_zt02.jpg" width="177" height="50" border="0" alt="办公用品查询"></a></td>
								        </tr>
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/pubCost/search.do"><img name="" src="${ctx}/style/images/right_zt08.jpg" width="177" height="50" border="0" alt="个人费用查询"></a></td>
								        </tr>
						        		</c:if>
						        		
						        		<c:if test="${sessionScope.loginInfo.category != 1}">
						        		<tr>
								            <td height="60" align="center"><a href="${ctx}/personnel_search.do"><img name="" src="${ctx}/style/images/right_zt03.jpg" width="177" height="50" border="0" alt="人员信息查询"></a></td>
								        </tr>
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/pubCost/search.do"><img name="" src="${ctx}/style/images/right_zt08.jpg" width="177" height="50" border="0" alt="个人费用查询"></a></td>
								        </tr>
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/meeting_myMeeting.do"><img name="" src="${ctx}/style/images/right_zt01.gif" width="177" height="50" border="0" alt="会议室预定"></a></td>
								        </tr>
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/template_search.do"><img name="" src="${ctx}/style/images/right_zt02.jpg" width="177" height="50" border="0" alt="办公用品查询"></a></td>
								        </tr>
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/info_gzzd.do"><img name="" src="${ctx}/style/images/right_zt06.jpg" width="177" height="50" border="0" alt="规章制度"></a></td>
								        </tr>
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/privateLog/list.do"><img name="" src="${ctx}/style/images/right_zt07.jpg" width="177" height="50" border="0" alt="个人日志"></a></td>
								        </tr>
								        
								        </c:if>
								        <%--<tr>
								            <td height="60" align="center"><a href="${ctx}/file_browse.jsp" target="_blank"><img name="" src="${ctx}/style/images/right_zt10.jpg" width="177" height="50" border="0" alt="商务礼仪"></a></td>
								        </tr>
								          
								          --%><tr>
								            <td height="60" align="center"><a href="${ctx}/swly.ppt" target="_blank"><img name="" src="${ctx}/style/images/right_zt10.jpg" width="177" height="50" border="0" alt="商务礼仪"></a></td>
								        </tr>
								        
								        
								        <%-- 
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/pubCcsq/create.do"><img name="" src="${ctx}/style/images/right_zt09.jpg" width="177" height="50" border="0" alt="出差申请"></a></td>
								        </tr>
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/leader_search.do"><img name="" src="${ctx}/style/images/right_zt05.jpg" width="177" height="50" border="0" alt="高管在岗状态"></a></td>
								        </tr>
								        <tr>
								            <td height="60" align="center"><a href="${ctx}/demand_search.do"><img name="" src="${ctx}/style/images/right_zt04.jpg" width="177" height="50" border="0" alt="员工诉求"></a></td>
								        </tr>
								        --%>
								    </table>
								</td>
							</tr>
							<tr>
				        		<td style="background-image:url(${ctx}/style/images/right_03.jpg)" width="209" height="33" align="right">
				        		</td>
				      		</tr>
							<tr>
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="0" >
							        	<tr>
							        		<td align="left" height="100px" valign="top">
												<table width="100%" border="0" cellpadding="0" cellspacing="3">
							  						<tr>
							  							<td align="center">
														    <marquee  direction="up" scrollamount="1" scrolldelay="20" onmouseover="stop();" onmouseout="start();">
														    <table width="100%">
														    <c:forEach items="${leaderList}" var="item" varStatus="status">
														    <tr align="left">
														    <td width="70"><span style="width: 50px">${item.ldmc}</span> </td>
														    <td width="60"><span style="width: 50px">${item.zt}</span> </td>
														    <td><span style="width: 50px">${item.rqString}</span></td>
														    </tr>
														    </c:forEach>
														    </table>
														    </marquee>
							  							</td>
							  						</tr>
												</table>
									  		</td>
							      		</tr>
							      		
							      	</table>
								</td>
							</tr>
				    	</table>
				    </td>
				</tr>
			</table>
    	</div>
    </div>
    <%@include file="bottom.jsp"%>
  </body>
</html>
<script type="text/javascript">
var limitLength = 25;//限制多少个字数
limitLen();
function limitLen(){
	$(".sl").each(function(i, n) {
		var s = n.innerHTML;
		n.title = s;
		if(s.length>limitLength){
			n.innerHTML = s.substring(0,limitLength)+"...";
		}
		else if(s.length < limitLength){
			for(var c = s.length;c<limitLength+3;c++){//+3是因为后面三个...
				s += " ";	
			}
			$(this).innerHTML = s;
		}
	});
}
function ygqd(){   
	jQuery.ajax({
	   	type:'post',	
	   	url:'${ctx}/attendance/save.do',
	   	success:resultRgqdHandler,
	    error:resultRgqdHandler
	});
}
function resultRgqdHandler(responseXML){
	var result = responseXML.getElementsByTagName("result")[0].firstChild.nodeValue;
	var message = responseXML.getElementsByTagName("error-message")[0].firstChild.nodeValue;
	var errorType = responseXML.getElementsByTagName("error-type")[0].firstChild.nodeValue;
	if(!eval(result)&&(errorType!=2)){
		alert(message);
	}
	else{
		var curDate = new Date(); 
		alert("签到成功！");
		location.replace("${ctx}/index.do?timsStamp=" + curDate.getTime());
	}
}
function updatePwdDialog(){
  /*
  $.dialog({ 
	    id: 'msg', 
	    title: '消息提示', 
	    content: 'url:${ctx}/msgTips_search.do?timestamp='+new Date().getTime(), 
	    max:false,
 			min:false,
	    width: 400, 
	    height: 200, 
	    left: '100%', 
	    top: '100%', 
	    fixed: true, 
	    drag: false, 
	    resize: false 
	});
  */
	$.dialog({ 
		title: '系统提示', 
	    content: '请修改系统帐号密码！', 
	    width: 400,
	    fixed: true, 
	    drag: false,
	    ok: function(){ 
	        window.location.href = "${ctx}/user/setting.do";
	        return false; 
	    },
	    max:false,
 			min:false,
	    width: 400, 
	    height: 100, 
	    left: '100%', 
	    top: '100%', 
	    fixed: true, 
	    drag: false, 
	    resize: false 
	});
}
<c:if test="${sessionScope.loginInfo.isinit == 0}">
	updatePwdDialog();
</c:if>
</script>
